package com.lnsf.bookstore.common.schedule;

import com.lnsf.bookstore.system.order.controller.OrderController;
import com.lnsf.bookstore.system.order.service.OrderService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

public class OrderJob implements Job {

    private Logger log = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private OrderService orderService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        try {
            System.out.println("OrderSchedule定时任务执行......");
            //orderService.cancelOrder();
        } catch (RuntimeException e) {
            e.printStackTrace();
        }
    }
}
